<!--
  @author yangjiangming
  @date 2018-12-10 20:40:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html th:replace="~{work/modify/common/layout :: layout('改贴花', ~{::title}, ~{::content}, ~{::script})}"
      xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>工单管理-改贴花</title>
</head>
<body>

<div th:fragment="content">
    <style>
        #showimages > img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin-right: 10px;
        }

        .d-images {
            width: 120px;
            height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border: 1px solid #d2d2d2;
            border-radius: 50%;
        }

    </style>
    <form   class="layui-form">
        <div class="layui-form-item" style="">
            <label class="layui-form-label" style="width: 60px">贴花照片</label>
            <div class="layui-inline">
                <div class="layui-form-item" id="showimages">
                    <zmn th:each="appliqueSrc:${appliqueSrcList}">
                        <img th:src="@{${appliqueSrc}}" style="width: 80px;height: auto" alt="">
                    </zmn>
                </div>
                <!--<button class="layui-form-item d-images" id="d-images">-->
                <!--<i class="layui-icon layui-icon-add-1" style="font-size: 30px;"></i>-->
                <!--<span>上传图片</span>-->
                <!--</button>-->
                <input type="hidden" name="orderId" th:value="${orderWork.orderId}">
                <input type="hidden" name="workId" th:value="${orderWork.workId}">
                <div class="layui-form-item">
                    <zmn th:if="${orderWork.appliqueStatus} eq 2">
                        <input type="radio" name="status" value="2" title="有效" checked>
                        <input type="radio" name="status" value="1" title="无效">
                    </zmn>
                    <zmn th:unless="${orderWork.appliqueStatus} eq 2">
                        <input type="radio" name="status" value="2" title="有效">
                        <input type="radio" name="status" value="1" title="无效" checked>
                    </zmn>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label" style="width: 60px">备注</label>
            <div class="layui-inline" style="width:800px;">
                <textarea name="operatorRemark" th:value="orderWork.appliqueStatus" class="layui-textarea" placeholder="请输入"></textarea>
                <button class="layui-btn layui-btn-normal" lay-submit style="margin-top: 20px;">确定</button>
            </div>
        </div>
    </form>

</div>

<script >
    var layuiModel = {
        oms_work_modify_applique: "work/modify/zmn.oms.work.modify.applique"
    };
</script>
</body>
</html>